package com.touzhijia.authority.controller;

import com.touzhijia.authority.service.ModuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 作者： lzw<br/>
 * 创建时间：2018-03-21 16:36 <br/>
 */
@Api(description = "模块管理")
@RestController
@RequestMapping("/api")
public class ModuleController {

    @Autowired
    private ModuleService moduleService;

    @ApiOperation("获取所有模块")
    @GetMapping("/module")
    public List<String> getAllModule() {
        return moduleService.getAllModule();
    }
}
